﻿using Client.Framework.Message;
using Client.Model;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Message.Request
{
    class OrgTreeReq : RequestBaseMessage
    {
        public OrgTreeReq(int msgId) : base(msgId)
        {
        }

        // 是否包含根节点1、包含  2、不包含
        public int HasRoot { get; set; }


        public override byte[] Serialize()
        {
            RequestOrgTree msg = new RequestOrgTree
            {
                HasRoot = HasRoot
            };
            return msg.ToByteArray();
        }
    }
}
